package com.tzbank.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.Table;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.io.Serializable;

/**
 * 埋点动作
 * @author XUZONGTIAN
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Entity(name = "mb_buried_action")
@Table(appliesTo = "mb_buried_action", comment = "埋点动作表")
public class BuriedAction extends BaseModel implements Serializable {

	private static final long serialVersionUID = 6797903503195543855L;

	/**
	 * 业务场景ID
	 */
	@ApiModelProperty(value = "业务场景ID")
	@Column(name = "business_id", columnDefinition = "VARCHAR(50) NOT NULL COMMENT '业务场景ID'")
	private String businessId;

	/**
	 * 业务动作
	 */
	@ApiModelProperty(value = "业务动作")
	@Column(name = "business_action_id", columnDefinition = "VARCHAR(50) NOT NULL COMMENT '业务动作'")
	private String businessActionId;

	/**
	 * 触发时机
	 */
	@ApiModelProperty(value = "触发时机")
	@Column(name = "action_trigger", columnDefinition = "VARCHAR(50) NOT NULL COMMENT '触发时机'")
	private String actionTrigger;

	/**
	 * 规则ID串
	 */
	@ApiModelProperty(value = "规则ID串")
	@Column(name = "rule_ids", columnDefinition = "VARCHAR(50) NOT NULL COMMENT '规则ID串'")
	private String ruleIds;

	/**
	 * 规则组合逻辑
	 */
	@ApiModelProperty(value = "规则组合逻辑")
	@Column(name = "rule_logic", columnDefinition = "VARCHAR(50) NOT NULL COMMENT '规则组合逻辑'")
	private String ruleLogic;

	/**
	 * 执行标记: 1-符合规则，0-不符合
	 */
	@ApiModelProperty(value = "执行标记: 1-符合规则，0-不符合")
	@Column(name = "action_flag", columnDefinition = "INT(1) NOT NULL COMMENT '执行标记: 1-符合规则，0-不符合'")
	private int actionFlag;

	/**
	 * 动作ID
	 */
	@ApiModelProperty(value = "动作ID")
	@Column(name = "action_id", columnDefinition = "VARCHAR(50) NOT NULL COMMENT '动作ID'")
	private String actionId;

}
